<%--
  Created by IntelliJ IDEA.
  User: ASUS
  Date: 2021/8/24
  Time: 9:07
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>注册页面</title>
</head>
<body>
<form action=<%=request.getContextPath()+"/regedit"%> method="post">
    <table>
        <tr>
            <td>用户名</td>
            <td><input type="text" name="username"></td>
        </tr>
        <tr>
            <td>密码</td>
            <td><input type="password" name="password"></td>
        </tr>
        <tr>
            <td>
                <select name="role">
                    <option value="admin">管理员</option>
                    <option value="user">用户</option>
                </select>
            </td>
        </tr>
        <tr>
            <td><input type="submit" value="注册"></td>
        </tr>
    </table>
<%--    输出错误信息--%>
    <%=request.getAttribute("regedit_error")==null?"":request.getAttribute("regedit_error")%>
</form>
</body>
</html>
